import request from '@/utils/request'

export function getListPage(params) {
  return request({
    url: '/umc/authority/listPage',
    method: 'post',
    data: params
  })
}

export function deleteAuthority(params) {
  return request({
    url: '/umc/authority/delete/' + params,
    method: 'post'
  })
}

export function enableAuthority(params) {
  return request({
    url: '/umc/authority/enable/' + params,
    method: 'post'
  })
}

export function disableAuthority(params) {
  return request({
    url: '/umc/authority/disable/' + params,
    method: 'post'
  })
}

export function modifyAuthority(params) {
  return request({
    url: '/umc/authority/modifyAuthority',
    method: 'post',
    data: params
  })
}

export function saveAuthority(params) {
  return request({
    url: '/umc/authority/saveAuthorityInfo',
    method: 'post',
    data: params
  })
}

export function checkAuthorityCode(params) {
  return request({
    url: '/umc/authority/checkAuthorityCode',
    method: 'post',
    data: params
  })
}

export function getMenuList() {
  return request({
    url: '/umc/menu/select2MenuList',
    method: 'post'
  })
}


